//Implementation file - Weapon.cpp
//private:
//

#include <iostream>
#include "Weapon.h"

using namespace std;

Weapon::Weapon()
{
	minimumDamage = 1;
	maximumDamage = 1;

	criticalMinimum = 20;
	criticalMultiplier = 2;

	name = "unknown";
}

int Weapon::getMinimumDamage()
{
	return minimumDamage;
}

void Weapon::setMinimumDamage(int min) 
{
	if (min > 0)
		minimumDamage = min;
}

int Weapon::getMaximumDamage()
{
	return maximumDamage;
}

void Weapon::setMaximumDamage(int max) 
{
	if (max > 0)
		maximumDamage = max;
}

int Weapon::getCriticalMinimum()
{
	return criticalMinimum;
}

void Weapon::setCriticalMinimum(int min)
{
	if (min > 0)
		criticalMinimum = min;
}

int Weapon::getCriticalMultiplier()
{
	return criticalMultiplier;
}

void Weapon::setCriticalMultiplier(int mult) 
{
	if (mult > 0)
		criticalMultiplier = mult;
}

string Weapon::getName()
{
	return name;
}

void Weapon::setName(string title)
{
	name = title;
}

